<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'sayhello.jsp' starting page</title>
    <script type="text/javascript" src="dwr/engine.js"></script>
	<script type="text/javascript" src="dwr/util.js"></script>
    <script type='text/javascript' src='dwr/interface/SayHello.js'></script>
    <script type="text/javascript">
    	function updateName(){
    		var name1 = $("name2").value;
    		SayHello.getHello(name1,callBack);
    	}
    	function callBack(data){
    		dwr.util.setValue("content1",data);
    	}
    </script>

  </head>
  
  <body>
	<input id="name2" type="text" value="" />
	<input type="button" value="submit" onclick="updateName()" />
	<div id="content1">
	</div>
  </body>
</html>
